import React,{ Component } from 'react';
import { Route, Switch , Redirect } from 'react-router-dom'
import Admin from './containers/admin/admin.jsx';
import Login from './containers/login/login.jsx';

export default class MyComponent extends Component {
    render(){
        return (
            <div className="app">
              <Switch>
                {/* <Route path='/' exact component={Login}/> */}
                <Route path='/login' component={Login}/>
                <Route path='/training' component={Admin}/>
                <Redirect to='/login'/>
              </Switch>
            </div>
        );
    }
}